<?php
/**
 *   
 */
class User_model extends Model
{
    public function getUserInfo() {
        
    }      
    
    public function login($username, $password) {
        $this->db->where('username', $username);
        $this->db->where('password', md5($password));
        $query = $this->db->get('user');
        
        if($query->num_rows == 1)
        {
            return true;
        }
    }
    
    
}
?>
